#!/bin/sh
ROOT=$(/Data/apps/php/bin/php -r "echo realpath('`dirname $0`/../');")

createlink() {
    echo "    createlink:$2 => $1"
    rm -f $2
    ln -s $1 $2
}

myecho() {
    echo -en $"\\033[0;32m $1 \\033[0;39m\n"
}

createlink $HOME/system/webapps/gamefront/root/index.php $ROOT/root/gamefront.php
createlink $HOME/system/webapps/wenfront/root/index.php $ROOT/root/wenfront.php

#createlink $HOME/system/webapps/zixunfront/root/index.php $ROOT/root/zixunfront.php
#createlink $HOME/system/webapps/spacefront/root/index.php $ROOT/root/spacefront.php
#createlink $HOME/system/webapps/zhuanti-web/root $ROOT/root/zhuanti
#createlink $HOME/data/sitemap                             $ROOT/root/sitemap
